import request from '@/utils/http'

/*
我的订单
params: {
  orderState:0,
  page:1,
  pageSize:2
}
*/
export const getUserOrder = (params) => {
    return request({
      url:'/member/order',
      method:'GET',
      params
    })
}

/**
 * /member/order 接口返回的格式:
 * {
    "code":"1",
    "msg":"操作成功",
    "result":{
        "counts":1452,
        "pageSize":2,
        "pages":726,
        "page":1,
        "items":[
            {
                "id":"1664076182422818817",
                "createTime":"2023-06-01 09:07:34",
                "payType":1,
                "orderState":1,
                "payLatestTime":"2023-06-01 09:37:34",
                "postFee":5,
                "payMoney":144,
                "totalMoney":139,
                "totalNum":1,
                "skus":[
                    {
                        "id":"1664076182460567554",
                        "spuId":"4007902",
                        "name":"纯棉舒适女童印花荷叶袖小衫90-140cm",
                        "quantity":1,
                        "image":"https://yanxuan-item.nosdn.127.net/11d0160b0a30c344d1b250c3e613fbb7.jpg",
                        "realPay":139,
                        "curPrice":139,
                        "totalMoney":null,
                        "properties":[
                            {
                                "propertyMainName":"颜色",
                                "propertyValueName":"圈圈花"
                            },
                            {
                                "propertyMainName":"尺码",
                                "propertyValueName":"140cm"
                            }
                        ],
                        "attrsText":"颜色:圈圈花 尺码:140cm "
                    }
                ],
                "payChannel":1,
                "countdown":1785
            },
            {
                "id":"1664075815660294146",
                "createTime":"2023-06-01 09:06:06",
                "payType":1,
                "orderState":1,
                "payLatestTime":"2023-06-01 09:36:06",
                "postFee":5,
                "payMoney":144,
                "totalMoney":139,
                "totalNum":1,
                "skus":[
                    {
                        "id":"1664075815681265665",
                        "spuId":"4007902",
                        "name":"纯棉舒适女童印花荷叶袖小衫90-140cm",
                        "quantity":1,
                        "image":"https://yanxuan-item.nosdn.127.net/11d0160b0a30c344d1b250c3e613fbb7.jpg",
                        "realPay":139,
                        "curPrice":139,
                        "totalMoney":null,
                        "properties":[
                            {
                                "propertyMainName":"颜色",
                                "propertyValueName":"圈圈花"
                            },
                            {
                                "propertyMainName":"尺码",
                                "propertyValueName":"140cm"
                            }
                        ],
                        "attrsText":"颜色:圈圈花 尺码:140cm "
                    }
                ],
                "payChannel":1,
                "countdown":1697
            }
        ]
    }
}
 */